<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>修改商品</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="<?php echo Yii::app()->baseUrl;?>/static/admin/css/mine.css" type="text/css" rel="stylesheet">
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：商品管理-》修改商品信息</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="./admin.php?c=goods&a=showlist">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <?php $form = $this->beginWidget('CActiveForm',array('id'=>'xform','htmlOptions'=>array('name'=>'xform', 'enctype'=>'multipart/form-data')));?>
            <table border="1" width="100%" class="table_a">
                <tr>
                    <td><?php echo $form->labelEx($model,'goods_name');?></td>
                    <td><?php echo $form->textField($model,'goods_name');?></td>
                </tr>
                <tr>
                    <td><?php echo $form->labelEx($model,'cat_id');?></td>
                    <td>
                        
                        <?php echo $form->dropDownList($model,'cat_id',$cat_list,array('options' => array($model->cat_id=>array('selected'=>'selected'))))?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $form->labelEx($model,'brand_id');?></td>
                    <td>
                        <?php echo $form->dropDownList($model,'brand_id',$brand_list,array('options'=>array($model->brand_id=>array('selected'=>'selected'))));?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $form->labelEx($model,'shop_price');?></td>
                    <td><?php echo $form->textField($model,'shop_price');?></td>
                </tr>
                <tr>
                    <td><?php echo $form->labelEx($model,'goods_img');?></td>
                    <td><?php echo CHtml::activeFileField($model,'goods_img'); ?></td>
                </tr>
                <tr>
                    <td><?php echo $form->labelEx($model,'goods_desc');?></td>
                    <td>
                        <?php echo $form->textArea($model,'goods_desc');?>
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="修改">
                    </td>
                </tr>  
            <?php $form = $this->endWidget();?>
            </form>
        </div>
    </body>
</html>